/**
 * 子应用控制主应用路由
 */
export const microAppMainRouter = (routerFun, pathObj) => {
  const baseRouter = window.microApp.router.getBaseAppRouter();
  baseRouter[routerFun](pathObj);
};

/**
 * 子应用强制发送数据
 */
export const microAppForceSendData = (data, callBack) => {
  if (!window.microApp) return;
  window.microApp.forceDispatch(data, callBack);
};
